import { history } from '@umijs/max';
import { Button, Result } from 'antd';
import React from 'react';

const NoAccessPage: React.FC = () => {
  return (
    <Result
      status="403"
      title="403"
      subTitle="抱歉，您无权访问该页面"
      extra={
        <Button
          type="primary"
          onClick={() => {
            history.replace('/');
          }}
        >
          回到首页
        </Button>
      }
    />
  );
};

export default NoAccessPage;
